package com.danbay.cloud.device.api.service.electricmeter;

import com.danbay.cloud.device.api.dto.electricmeter.EmRecordReportDto;
import com.danbay.framework.springnc.annotation.AutoController;
import com.danbay.framework.springnc.annotation.RequestMapping;

import java.util.Date;

@AutoController
@RequestMapping("/device-service/em-record")
public interface IEmRecordService {

    /**
     * 保存上报数据
     * @param reportDto
     * @return
     */
    @RequestMapping("/report")
    int report(EmRecordReportDto reportDto);

    /**
     * 获取上一小时数据
     * @return
     */
    @RequestMapping("/firstRecodeOfLastHour")
    double firstRecodeOfLastHour(Date date);
}
